package com.wd.live.tool.socket.wsmanager

import okhttp3.Response
import okio.ByteString

abstract class WsStatusListener {
    open fun onOpen(response: Response?) {}
    open fun onMessage(text: String?) {}
    open fun onMessage(bytes: ByteString?) {}
    open fun onReconnect() {}
    open fun onClosing(code: Int, reason: String?) {}
    open fun onClosed(code: Int, reason: String?) {}
    open fun onFailure(t: Throwable?, response: Response?) {}
}